<template>
  <div>
    <el-page-header class="AddTitle" @back="$router.back()">
    </el-page-header>
    <!-- 基本信息 -->
    <Mssg v-if="!isEditorMode" ref="FormComponentRef" :store-id="storeId" :goods-addid="formId.goodsId" class="AddBox"></Mssg>
  </div>
</template>

<script>
import Mssg from './components/Mssg'
import { addGoods } from '@/api/goods'
import { Basic } from '@/api/base'
export default {
  components: {
    Mssg
  },
  data() {
    return {
      title: '新增',
      formId: {
        goodsId: null, // 新增时返回的商品id
        attrList: []
      },
      storeId: null, // 商品列表里当前商品id
      active: 1,
      isEditorMode: false // 编辑模式
    }
  },
  created() {
    if (this.$route.params.id) {
      this.storeId = this.$route.params.id
      this.title = '编辑'
    }
  },
  methods: {}
}
</script>

<style scoped>
  .AddTitle{
    margin:20px;
  }
  .AddBox{
    padding: 20px 48px;
  }
  .addGoodsSteps{
    width: 40%;
    margin: auto;
    background:white;
  }
  .el-page-header__left::after{
    width:0;
  }
</style>

